package com.activiti.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/")
public class HomeController
{
    @RequestMapping(value = "/test", method = RequestMethod.GET, produces = "application/json;charset=utf-8")
    @ResponseBody
    public Object brithdayList(HttpServletRequest req)
    {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("name", "activiti");
        return map;
    }
}
